package objectsDiagram;

public class DecoratorTask implements Cloneable{
	
	//atts for task's decorate
	private int coordDecorX;
	private int coordDecorY;
	private int widthDecor;
	private int heightDecor;
	private String decorType;//join or split
	private String decor;
	
	public DecoratorTask(){}

	public int getCoordDecorX() {
		return coordDecorX;
	}

	public void setCoordDecorX(int coordDecorX) {
		this.coordDecorX = coordDecorX;
	}

	public int getCoordDecorY() {
		return coordDecorY;
	}

	public void setCoordDecorY(int coordDecorY) {
		this.coordDecorY = coordDecorY;
	}

	public int getWidthDecor() {
		return widthDecor;
	}

	public void setWidthDecor(int widthDecor) {
		this.widthDecor = widthDecor;
	}

	public int getHeightDecor() {
		return heightDecor;
	}

	public void setHeightDecor(int heightDecor) {
		this.heightDecor = heightDecor;
	}

	public String getDecorType() {
		return decorType;
	}

	public void setDecorType(String decorType) {
		this.decorType = decorType;
	}

	public String getDecor() {
		return decor;
	}

	public void setDecor(String decor) {
		this.decor = decor;
	}
	
	public DecoratorTask clone(){
		DecoratorTask newDecoratorTask = new DecoratorTask();
		newDecoratorTask.setCoordDecorX(coordDecorX);
		newDecoratorTask.setCoordDecorY(coordDecorY);
		newDecoratorTask.setWidthDecor(widthDecor);
		newDecoratorTask.setHeightDecor(heightDecor);
		newDecoratorTask.setDecor(decor);
		newDecoratorTask.setDecorType(decorType);
		return newDecoratorTask;
	}
}
